package com.tencent.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.tencent.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {

    public static User findUserByIdBlockHandler(@PathVariable("id") Long id, BlockException e){
        return new User(-1L, "限流啦", "别挤啦，人太多了");
    }
}
